package com.kingyea.mobilepolice.roleapipermission.dao;

import com.kingyea.mobilepolice.roleapipermission.bean.RoleApiPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hx
 * @version v1.0.0
 * @description RoleApiPermissionMapper
 * @date Created in 2018-05-15 20:25:07
 */
public interface RoleApiPermissionMapper {

    /**
     * 通过ID获取对象
     */
    RoleApiPermission getById(@Param("roleId") Integer roleId);

    /**
     * 通过ID删除对象
     */
    int deleteById(@Param("roleId") Integer roleId);

    /**
     * 更新对象
     */
    int update(RoleApiPermission obj);

    /**
     * 保存对象
     */
    int save(RoleApiPermission obj);

    /**
     * 查询列表
     */
    List<RoleApiPermission> search(RoleApiPermission obj);

    List<RoleApiPermission> searchByRole(RoleApiPermission obj);

}
